Skip to content

fix: default prompt version to None #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 28, 2024
Merged

Conversation

desaxce
Copy link
Contributor

@desaxce desaxce commented May 23, 2024

Changes:

  • set default version to None instead of 0
  • add promote version API

To test, see the test_champion_version example.

Returns:
str: The champion prompt ID.
"""
lineage = self.create_prompt_lineage(name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get or create

@desaxce desaxce requested a review from willydouhard May 23, 2024 11:59
@desaxce
Copy link
Contributor Author

desaxce commented May 27, 2024

@willydouhard Pretty please approve 🙏

@willydouhard willydouhard merged commit 2b9ebea into main May 28, 2024
2 checks passed
@willydouhard willydouhard deleted the hugues/fix-prompt-version branch May 28, 2024 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants